package org.client.iot.http;

import androidx.annotation.NonNull;

import java.util.List;

/**
 * @Date 2024/2/18 9:47
 * @Description 公共请求响应实体类
 */
public class BaseRes<T> {
    private String msg;
    private int code;
    private List<T> rows;
    private int total;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    @NonNull
    @Override
    public String toString() {
        return "BaseRes{" +
                "msg='" + msg + '\'' +
                ", code=" + code +
                ", rows=" + rows +
                ", total=" + total +
                '}';
    }
}
